package net.sxjr.protal.igpuoffice;

import net.sxjr.common.Response;
import net.sxjr.protal.igpuoffice.params.IgCadreRecruitManageParams;
import net.sxjr.protal.igpuoffice.params.IgImportantDecideManageParams;
import net.sxjr.protal.igpuoffice.params.IgImportantProjectManageParams;
import net.sxjr.protal.igpuoffice.params.IgLagerAmountCapitalManageParams;
import net.sxjr.protal.igpuoffice.service.IgImportantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author ：cuixc
 * @date ：Created in 2020/12/14 13:40
 * @description：三重一大
 * @modified By：
 */
@RestController
@RequestMapping("/important")
public class IgImportantController {
    @Autowired
    private IgImportantService importantService;
    //重大决策风控
    @PostMapping("/decideManage")
    public Response decideManage(@RequestBody IgImportantDecideManageParams params){
        return importantService.decideManage(params);
    }

    //重大项目风控
    @GetMapping("/decideManage/list")
    public Response decideManageList(){
        return importantService.decideManageList();
    }

    //重大项目风控
    @PostMapping("/projectmanage")
    public Response projectmanage(@RequestBody IgImportantProjectManageParams params){
        return importantService.projectmanage(params);
    }

    //重大项目风控
    @GetMapping("/projectmanage/list")
    public Response projectmanageList(){
        return importantService.projectmanageList();
    }

    //干部聘用
    @PostMapping("/cadreRrecruitmanage")
    public Response cadreRrecruitmanage(@RequestBody IgCadreRecruitManageParams params){
        return importantService.cadreRecruitManage(params);
    }
    //干部聘用列表
    @GetMapping("/cadreRrecruitmanage/list")
    public Response cadreRrecruitmanageList(){
        return importantService.cadreRrecruitmanageList();
    }

    //大额资金
    @PostMapping("/lageramountcapitalmanage")
    public Response lagerAmountCapitalManage(@RequestBody IgLagerAmountCapitalManageParams params){
        return importantService.lagerAmountCapitalManage(params);
    }

    //大额资金
    @GetMapping("/lageramountcapitalmanageList")
    public Response lagerAmountCapitalManageList(){
        return importantService.lagerAmountCapitalManageList();
    }


}
